package com.challenge.sewercoverbackend.domian;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
//import com.baomidou.mybatisplus.annotation.tablename;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;

/**
 * 井盖实体类
 * 表名为datas
 * 表头: deviceName,temp,hum,CO,CH4,Longitude,Latitude,Pitch,Roll,time
 * ('Data', 24.0, 16, None, 2, 117.088241, 39.088798, None, None, datetime.datetime(2021, 3, 22, 16, 34, 10))
 */
@TableName(value = "datas")
@Data
public class Cover {
    /**
     * TODO 具体属性最好还是去核对一下，主键不知道是哪个
     * 这些属性都是什么我还没全搞懂
     * 等哪天带着电脑去问问
     */
    @TableId(value = "id")
    private int id;
    @TableField(value = "deviceName")
    private String deviceName;
    private double temp;
    private int hum;
    @TableField(value = "CO")
    private double CO;
    @TableField(value = "CH4")
    private int CH4;
    private double Longitude;
    private double Latitude;
    private double Pitch;
    private double Roll;
    private String time;

}
